package threads;

import connection.TCPSecureServerSocket;
import connection.exception.ConnectionResetException;

public class CertcopVericopConnection extends Thread {

	private TCPSecureServerSocket _tcpSocket;
	
	public CertcopVericopConnection(TCPSecureServerSocket socket){
		_tcpSocket = socket;
	}
	
	public void run(){
		try {
			_tcpSocket.isVericop(true);
			_tcpSocket.waitChannelEstablishmentMode();
			
		} catch (ConnectionResetException e) {
			e.printStackTrace();
		}
		
		if(_tcpSocket.isSecureChannelEstablished());
	}
	
}
